#include "MC30P6080.h" 
#include "lib.h" 

unsigned char volatile ram[10] = {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09};

#define IIC_SCL P00D
void C_RAM(void){
   	__asm
        movai 0x40 
        movra FSR
        movai 48 
        movra 0x07 
        decr FSR
        clrr INDF
        djzr 0x07 
        goto $ -3;
        clrr 0x07 
   	__endasm;
}
void ConfigSet(void){
   	P0 = 0x00;
   	P1 = 0x00;
   	DDR0 = 0x00; //1:input 0:output
   	DDR1 = 0x00;
   	PUCON = 0xff; //0:Effective 1:invalid
   	PDCON = 0xff;  //0:Effective 1:invalid
   	T0CR = 0x05; 
   	T0CNT = 256 - 125;
   	T0IE = 1;
}
void main(void) {
   	GIE = 0;
   	C_RAM();
   	ConfigSet();
   	GIE  = 1;
    while(1){
        P10D=0;
        P10D=1;
    }
}